import mapy
import alg3dpy
from mapy.model.elements.elem2d import Elem2D
from mapy.reader import user_setattr
class ElemQuad4(Elem2D):
   
    

    def __init__(self, inputs):
        Elem2D.__init__(self)
        self = user_setattr(self, inputs)
        self.xvec = None
        self.yvec = None
        self.zvec = None

    def rebuild(self):
        Elem2D.rebuild(self)
        pass

    def calc_xvec(self):
        g1 = self.grids[0]
        g2 = self.grids[1]
        g3 = self.grids[2]
        self.xvec = alg3dpy.vec2points( g1, g2 )
        self.yvec = alg3dpy.vec2points( g2, g3 )

